<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //商品详情信息
        Schema::create('m_info', function (Blueprint $table) {
            $table->increments('mid');
            $table->integer('fid')->unsigned();
            $table->integer('gid')->unsigned();
            $table->string('name')->nullable();
            $table->string('brief')->nullable();
            $table->string('content')->nullable();
            $table->integer('number')->unsigned()->nullable();
			$table->enum('status', ['on','off','wait'])->default('off');
            //$table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('m_info');
    }
}
